See Also

TcpStream Class  | TcpStream Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

buffer
The storage location of the data to be sent.
offset
The zero-based position in the buffer from which to begin writing from.
size
The exact number of bytes to write.
See Also Languages PowerTCP Email Validation for .NET

Write(Byte[],Int32,Int32) Method

Dart.PowerTCP.EmailValidation Namespace > TcpStream Class > Write Method : Write(Byte[],Int32,Int32) Method

Writes a sequence of bytes to the stream and returns when the operation is complete.

[Visual Basic]
Overloads Overrides Public Sub Write( _    ByVal buffer() As Byte, _    ByVal offset As Integer, _    ByVal size As Integer _ )
[C#]
public override void Write(    byte[] buffer,    int offset,    int size );
[C++]
public: void Write(    byte[]* buffer,    int offset,    int size ) override
[C++/CLI]
public: void Write(    bytearray<buffer>^ buffer,    int offset,    int size ) override

Parameters

buffer
The storage location of the data to be sent.
offset
The zero-based position in the buffer from which to begin writing from.
size
The exact number of bytes to write.

Exceptions

ExceptionDescription
IOExceptionThrown when the stream is not Writeable.
#ctorThrown when buffer is null.
#ctorThrown when the offset is less than zero or when size is less than or equal to zero.
#ctorThrown when the (offset + size) > buffer.Length.

Remarks

Use the CanWrite property to determine whether the current instance supports writing.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

TcpStream Class  | TcpStream Members  | Overload List


Send comments on this topic.

Documentation version 1.0.3.0.

© 2008 Dart Communications.  All rights reserved.